/*
 * @Author: KingOfLoach:469184621@qq.com
 * @Date: 2024-11-01 19:21:15
 * @LastEditors: KingOfLoach 469184621@qq.com
 * @LastEditTime: 2024-11-01 19:24:57
 * @FilePath: \LoachLogger\demo\loach_tools_demo.cpp
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
#include <stdio.h>
#include "loach_tools.hpp"

/***********************************************************
 * @description: 获取函数运行时间 demo
 * @note:: 
 *  1. 使用 LoachLogger 在命令行打印函数运行时间
 *  2. 使用 LoachLogger 在 ".log"文件中输出函数运行时间
 *  3. 获取函数运行时间(返回一个float)（与LoachLogger 解耦）
 *  4. 本demo中示例均对 test_func 进行计时
************************************************************/
void DemoCheckAndCreatFolder(){

    // 相对路径
    loach_tools::CheckFolder("./1/2/3/4/");
    loach_tools::CheckFolder("./11/22/33/44");
    // 绝对路径
    loach_tools::CheckFolder("D:/1/2/3/4/");
    loach_tools::CheckFolder("D:/11/22/33/44");
}

int main(){

    //获取函数运行时间 demo
    DemoCheckAndCreatFolder();

    printf("ITS OVER FUCKED!\n");
    return 0;
}